package com.nicky.kids.Utility;

import android.app.Activity;
import android.util.DisplayMetrics;

/**
 * Created by nick on 13-9-11.
 */
public class DisplayUtil {
    private static final String TAG = "nick_DisplayUtil";

    public static DisplayMetrics getDisplayMetrics(Activity activity) {
        DisplayMetrics dm = new DisplayMetrics();
        activity.getWindowManager().getDefaultDisplay().getMetrics(dm);
        return dm;
    }
}
